<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <%@ include file="/WEB-INF/views/include/head.jsp"%>  
  <title>free_master</title>
</head>
<body class="layui-layout-body">
 
<div class="layui-layout layui-layout-admin"> 
	<div class="layui-header">
		<div class="layui-logo">Free_master 后台管理</div>
		<!-- 头部区域（可配合layui已有的水平导航） -->
		<ul class="layui-nav layui-layout-left">
			<li class="layui-nav-item"><a href="">控制台</a></li>
			<li class="layui-nav-item"><a href="">商品管理</a></li>
			<li class="layui-nav-item"><a href="">用户</a></li>
			<li class="layui-nav-item">
			<a href="javascript:;">其它系统</a>
			<dl class="layui-nav-child">
			  <dd><a href="">邮件管理</a></dd>
			  <dd><a href="">消息管理</a></dd>
			  <dd><a href="">授权管理</a></dd>
			</dl>
		  </li>
		</ul>
		<ul class="layui-nav layui-layout-right">
		  <li class="layui-nav-item">
			<a href="javascript:;">
			  <img src="http://t.cn/RCzsdCq" class="layui-nav-img">
			  贤心
			</a>
			<dl class="layui-nav-child">
			  <dd><a href="">基本资料</a></dd>
			  <dd><a href="">安全设置</a></dd>
			</dl>
		  </li>
		  <li class="layui-nav-item"><a href="${ctx}/logout">退了</a></li>
		</ul>
	</div>


	 <div class="layui-side layui-bg-black">
		<div class="layui-side-scroll">
		  <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
		  <ul class="layui-nav layui-nav-tree"  lay-filter="test">
			<li class="layui-nav-item layui-nav-itemed">
			  <a class="" href="javascript:;">所有商品</a>
			  <dl class="layui-nav-child">
				<dd><a href="javascript:menuClick('edite.html')"  >添加文章</a></dd>
				<dd><a href="javascript:menuClick('classify.html');">分类</a></dd>
				<dd><a href="javascript:menuClick('tags.html');">标签</a></dd>
				<dd><a href="javascript:menuClick('md_list.html');">文章列表</a></dd>
				<dd><a href="javascript:menuClick('invest_list.html');">投资记录</a></dd>
			  </dl>
			</li>
			<li class="layui-nav-item">
			  <a href="javascript:;">解决方案</a>
			  <dl class="layui-nav-child">
				<dd><a href="edite.html">列表一</a></dd>
				<dd><a href="javascript:;">列表二</a></dd>
				<dd><a href="">超链接</a></dd>
			  </dl>
			</li>
			<li class="layui-nav-item"><a href="">云市场</a></li>
			<li class="layui-nav-item"><a href="">发布商品</a></li>
		  </ul>
		</div>
	  </div>

	  <div class="layui-body">
		<!-- 内容主体区域 -->
		<div style="padding: 15px;" >
			<iframe src="./html/main.html"  id="demoAdmin" width="100%"  frameborder="no" border="0" marginwidth="0"
				marginheight=" 0" scrolling="no" allowtransparency="yes"></iframe>           
        </div>
	  </div>

	  <div class="layui-footer">
		<!-- 底部固定区域 -->
		© layui.com - 底部固定区域
	  </div>


</div>
 
<script>
//JavaScript代码区域
layui.use('element', function(){
  var element = layui.element;
  
});

</script>

<script type="text/javascript">

$(function() {

var height=document.documentElement.clientHeight;

document.getElementById('demoAdmin').style.height=height+'px';

 


});

var menuClick = function(menuUrl) {
 
$("#demoAdmin").attr('src',menuUrl);

};
</script>

</body>
</html>